/**
 * @Author: 陈瑞鹏
 * @Date:   2022-10-15 13:45:10
 * @Last Modified by:   陈瑞鹏
 * @Last Modified time: 2022-10-15 15:48:56
 */

import mongoose from 'mongoose';

const Schema = mongoose.Schema;

const SwitchSchema: mongoose.Schema = new Schema({
  name: { type: String, display: '开关名称', index: true, unique: true },
  isOpen: { type: Boolean, display: '是否开启' }
})

const Switch = mongoose.model('Switch', SwitchSchema);
export default Switch;
